package org.jprobe.dummy;

import org.jprobe.JProbeException;
import org.jprobe.JProbeRuntimeException;


/**
 * dummy classes for test purposes with non-empty constructor
 * @author Hussain Al-Mutawa
 * @version 1.0
 * @since 1.0
 */
public class DummyImpl2 extends AbstractDummy3{

	public DummyImpl2(final boolean bool,int[]integers) {
		super();
	}

	@Override
	public boolean where() {
		return false;
	}

	@Override
	public AbstractDummy1 dummy() {
		return null;
	}

	public boolean run(AbstractDummy2 dummy2,boolean bool,int index){
		return true;
	}

	public boolean run(boolean bool,int index){
		return false;
	}

	public int throwException(final boolean shallThrow) throws JProbeException{
		if(shallThrow){
			throw new JProbeException("you requested to throw this exception");
		}
		return 111222;
	}

	public int throwRuntimeException(final boolean shallThrow){
		if(!shallThrow){
			throw new JProbeRuntimeException("you did not request to throw this runtime exception");
		}
		return 222111;
	}

	@Override
	void throwAJprobeException() throws JProbeException {
		// TODO Auto-generated method stub

	}

	@Override
	void doSomethingFunny() {
		// TODO Auto-generated method stub

	}

	@Override
	protected void doProtected2() {
		// TODO Auto-generated method stub

	}

	@Override
	protected void doProtected1() {
		// TODO Auto-generated method stub

	}
}
